﻿//************************************************************ 
// Copyright © 2009 - 2010 Oleg Stuhin & Rostislav Haitovich
// To learn more about Mytrip.Mvc.Entyty visit 
// http://starterkitmytripmvc.codeplex.com/
// mytripmvc@gmail.com
// license: Microsoft Public License (Ms-PL) 
// ***********************************************************
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Mytrip.Theme
{
    /// <summary>
    /// FormLayoutElements
    /// </summary>
    public static class FormLayoutElements
    {
        /// <summary>
        /// margin: 1em 0;
        /// padding: 1em;
        /// border: 1px solid #CCC;
        /// </summary>
        /// <returns>static string</returns>
        public static string fieldset()
        {
            StringBuilder result = new StringBuilder();
            result.AppendLine("margin: 1em 0;");
            result.AppendLine("padding: 1em;");
            result.AppendLine("border: 1px solid #CCC;");
            return result.ToString();
        }
        /// <summary>
        /// margin: 2px 12px 10px 10px;
        /// </summary>
        /// <returns>static string</returns>
        public static string fieldset_p()
        {
            StringBuilder result = new StringBuilder();
            result.AppendLine("margin: 2px 12px 10px 10px;");
            return result.ToString();
        }
        /// <summary>
        /// font-size: 1.1em;
        /// font-weight: 600;
        /// padding: 2px 4px 8px 4px;
        /// </summary>
        /// <returns>static string</returns>
        public static string legend()
        {
            StringBuilder result = new StringBuilder();
            result.AppendLine("font-size: 1.1em;");
            result.AppendLine("font-weight: 600;");
            result.AppendLine("padding: 2px 4px 8px 4px;");
            return result.ToString();
        }
        /// <summary>
        /// width: 200px;
        /// border: 1px solid #CCC;
        /// </summary>
        /// <returns>static string</returns>
        public static string input_type_text()
        {
            StringBuilder result = new StringBuilder();
            result.AppendLine("width: 200px;");
            result.AppendLine("border: 1px solid #CCC;");
            return result.ToString();
        }
        /// <summary>
        /// width: 200px;
        /// border: 1px solid #CCC;
        /// </summary>
        /// <returns>static string</returns>
        public static string input_type_password()
        {
            StringBuilder result = new StringBuilder();
            result.AppendLine("width: 200px;");
            result.AppendLine("border: 1px solid #CCC;");
            return result.ToString();
        }
        /// <summary>
        /// border: 1px solid #CCC;
        /// </summary>
        /// <returns>static string</returns>
        public static string captcha()
        {
            StringBuilder result = new StringBuilder();
            result.AppendLine("border: 1px solid #CCC;");
            return result.ToString();
        }
    }
}
